package com.tanhua.server.controller;

import com.tanhua.domain.vo.RecommendUserVo;
import com.tanhua.server.service.RecommendUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tanhua")
public class RecommendUserController {
    @Autowired
    private RecommendUserService recommendUserService;
    @GetMapping("/todayBest")
    public ResponseEntity RecommendUser(){
        RecommendUserVo recommendUserVo=recommendUserService.RecommendUser();
        return ResponseEntity.ok(recommendUserVo);
    }
}
